package backgrounds;


import java.awt.Component;
import java.awt.Graphics;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;

import javax.imageio.ImageIO;
import javax.swing.ImageIcon;

import mapelements.Renderer;

import annotations.EmptyConstructorOwner;

@EmptyConstructorOwner
public class MagmaRenderer extends Renderer{

	private static final long serialVersionUID = -5366927141927343627L;
	
	private static BufferedImage image;
	
	static{
		try {
			image=ImageIO.read(new File("fs_test/backgrounds/magma.png"));
		} catch (IOException error) {
			error.printStackTrace();
		}
	}
	
	public MagmaRenderer(){
		super();
	}

	@Override
	public BufferedImage drawRenderer(Graphics g) {
		return image;
	}


	/* (non-Javadoc)
	 * @see java.lang.Object#clone()
	 */
	@Override
	public MagmaRenderer clone() throws CloneNotSupportedException {
		return (MagmaRenderer)super.clone();
	}

	@Override
	public void setDrawingComponent(Component parent) {
		//non devo eseguire nulla in quanto solo ai renderer animati ciò è importante
	}

}
